﻿
using System;
using System.Windows.Controls;
namespace mediaPrime.Sdk
{
    public abstract class CustomSettingsDialog : UserControl
    {
        public abstract void Load(Setting setting);
        public abstract void Save(Setting setting);

        private bool? dialogResult;

        public bool? DialogResult
        {
            get { return dialogResult; }
            set
            {
                dialogResult = value;
                var dialogResultChanged = DialogResultChanged;
                if (dialogResultChanged != null)
                    dialogResultChanged(this, new EventArgs());
            }
        }

        public event EventHandler DialogResultChanged;
    }
}
